import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
// import { ConfigModule, ConfigService } from '@nestjs/config';
import { RolesController } from './roles.controller';
import { RolesService } from './roles.service';
import { Roles } from '../entities/roles.entity'; // 导入 Roles 实体

@Module({
  imports: [TypeOrmModule.forFeature([Roles])],
  controllers: [RolesController],
  providers: [RolesService],
  exports: [RolesService], // 导出 RolesService 以便其他模块可以使用
})
export class RolesModule {}
